#ifndef PLOT_H
#define PLOT_H

#include <QtGui>

class Plot : public QWidget
{
	Q_OBJECT

public:
    Plot(QWidget *parent = 0);
    ~Plot();
public slots:
    void draw();
private:
    void drawAxis(double maxX, double maxY);

    QGraphicsScene *scene;
    QGraphicsView *view;

    QPushButton *button;
    QLabel *label;
    QLabel *fromLabel;
    QLabel *toLabel;
    QLineEdit *lineEdit;
    QLineEdit *fromEdit;
    QLineEdit *toEdit;

    QHBoxLayout *hLayout;
    QVBoxLayout *mainLayout;

    int width;
    int height;
};

#endif // PLOT_H
